<?php

/**
 * MaterialI18n form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class Type17I18nForm extends BaseMaterialI18nForm
{
  public function configure()
  {
  	
  	  $this->setWidgets(array(
      'material_id'        => new sfWidgetFormInputHidden(),
      'culture'            => new sfWidgetFormInputHidden(),
      
    ));
     $this->widgetSchema['ititle'] = new sfWidgetFormInput(array(),array('size'=>100));
     $this->widgetSchema['ifull_description'] = new sfWidgetFormCKEditor (array('jsoptions'=>array('filebrowserBrowseUrl'=>"'/ckfinder/ckfinder.html'",
  	                                                                             'filebrowserUploadUrl' => "'/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'",
                                                                                 'toolbar ' => "[['Source','Font', 'FontSize', 'TextColor', 'Bold', 'Italic','PasteFromWord', 'PasteText', 'Table', 'Link', 'Image', 'ImageButton']]")) 
     ,array('width'=>'600'));
    // $this->widgetSchema['ifull_description'] = new sfWidgetFormTextareaTinyMCE(array(),array('class'=>'material_i18n_ifull_description','width'=>'600px'));
    
    
        $this->widgetSchema['seo_ititle']  = new sfWidgetFormInput(array(),array('style'=>'width:620px'));
  	   $this->widgetSchema['seo_idescription']  = new sfWidgetFormTextarea(array(),array('style'=>'width:620px'));
  	    $this->widgetSchema['seo_ikeyword']  = new sfWidgetFormTextarea(array(),array('style'=>'width:620px'));
     
     
    $this->widgetSchema->setNameFormat('material_i18n[%s]');
    $this->widgetSchema->setFormFormatterName('list');
    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
  	
  }
}
